import myRequest from '@/api/myRequest'

export async function productRegister(data) {//新增
    return myRequest({
        url: '/TradeSystem/api/product/register',
        method: 'post',
        data
    })
}

export function productDel(data) {//删除
    return myRequest({
        url: '/TradeSystem/api/product/del',
        method: 'post',
        data
    })
}

export function productChange(data) {//删除
    return myRequest({
        url: '/TradeSystem/api/product/change',
        method: 'post',
        data
    })
}

export function productSearch(data) {//查询
    return myRequest({
        url: '/TradeSystem/api/product/search',
        method: 'post',
        data
    })
}

export function productList(data) {//列表
    return myRequest({
        url: '/TradeSystem/api/product/list',
        method: 'post',
        data
    })
}